package com.wanda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.dao.Sale_ChanceDAO;
import com.wanda.model.Sale_ChanceAndRoomModel;
import com.wanda.model.Sale_ChanceModel;
import com.wanda.service.Sale_ChanceService;
@Service

public class Sale_ChanceServiceImpl implements Sale_ChanceService {
	
    @Autowired
    private Sale_ChanceDAO sale_chanceDAO;
	public int addSale_Chance(Sale_ChanceModel sale_chance) {
		// TODO Auto-generated method stub
		return sale_chanceDAO.addSale_Chance(sale_chance);
	}

	public int updateSale_Chance(Sale_ChanceModel sale_chance) {
		// TODO Auto-generated method stub
		return sale_chanceDAO.updateSale_Chance(sale_chance);
	}

	public int deleteSale_Chance(Sale_ChanceModel sale_chance) {
		// TODO Auto-generated method stub
		return sale_chanceDAO.deleteSale_Chance(sale_chance);
	}

	public List<Sale_ChanceModel> selectAll(String delete_state) {
		// TODO Auto-generated method stub
		return sale_chanceDAO.selectAll(delete_state);
	}

	public List<Sale_ChanceModel> selectBySql(int page,int rows,String SearchSql) {
		// TODO Auto-generated method stub
		return sale_chanceDAO.selectBySql(page,rows,SearchSql);
	}

	public int updateSale_ChanceState(Sale_ChanceModel sale_chance) {
		// TODO Auto-generated method stub
		return sale_chanceDAO.updateSale_ChanceState(sale_chance);
	}

	public List<Sale_ChanceAndRoomModel> selectBySqlAll( ) {
		// TODO Auto-generated method stub
		return sale_chanceDAO.selectBySqlAll();
	}

}
